package com.wsoft.sms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 模版调用记录表
 * </p>
 *
 * @author zhanggukai
 * @since 2025年01月02日 08:23:18
 */
@Getter
@Setter
@TableName("sms_template_send_log")
@Schema(name = "SmsTemplateSendLogEntity", description = "模版调用记录表")
public class SmsTemplateSendLogEntity extends BaseEntity {

    @Schema(description = "消息标题")
    @TableField("title")
    private String title;

    @Schema(description = "模版编码")
    @TableField("template_code")
    private String templateCode;

    @Schema(description = "模版内容")
    @TableField("template_content")
    private String templateContent;

    @Schema(description = "发送方式：1短信 2邮件 3微信")
    @TableField("type")
    private String type;

    @Schema(description = "接收人")
    @TableField("receiver")
    private String receiver;

    @Schema(description = "发送所需参数Json格式")
    @TableField("param")
    private String param;

    @Schema(description = "推送内容")
    @TableField("content")
    private String content;

    @Schema(description = "推送时间")
    @TableField("send_time")
    private LocalDateTime sendTime;

    @Schema(description = "推送状态 0未推送 1推送成功 2推送失败 -1失败不再发送")
    @TableField("send_status")
    private String sendStatus;

    @Schema(description = "发送次数 超过5次不再发送")
    @TableField("send_num")
    private Integer sendNum;

    @Schema(description = "推送失败原因")
    @TableField("result")
    private String result;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
}
